package cn.edu.xmu.restfuldemo.model;


import cn.edu.xmu.restfuldemo.model.OrderItemRetVo;


import java.util.Date;

public class OrderItem implements VoObject {

    private OrderItemPo orderItemPo;

    public OrderItem(){this.orderItemPo=new OrderItemPo();}

    public OrderItem(OrderItemPo OrderItemPo){this.orderItemPo=OrderItemPo;}

    @Override
    public Object createVo() {
        return new OrderItemRetVo(this);
    }

    public OrderItemPo getOrderItemPo(){return this.orderItemPo;}

    public Integer getId() {
        return orderItemPo.getId();
    }

    public Integer getOrderId() {
        return orderItemPo.getOrderId();
    }

    public Integer getGoodsSkuId() {
        return orderItemPo.getGoodsSkuId();
    }

    public Integer getQuantity() {
        return orderItemPo.getQuantity();
    }

    public Integer getPrice() {
        return orderItemPo.getPrice();
    }

    public Integer getDiscount() {
        return orderItemPo.getDiscount();
    }

    public String getName() {
        return orderItemPo.getName();
    }

    public Integer getCouponActivityId() {
        return orderItemPo.getCouponActivityId();
    }

    public Integer getBeSharedId() {
        return orderItemPo.getBeSharedId();
    }

    public Date getGmtCreate() {
        return orderItemPo.getGmtCreate();
    }

    public Date getGmtModified() {
        return orderItemPo.getGmtModified();
    }

    public void setId(Integer id) {
        orderItemPo.setId(id);
    }

    public void setOrderId(Integer orderId) {
        orderItemPo.setOrderId(orderId);
    }

    public void setGoodsSkuId(Integer goodsSkuId) {
        orderItemPo.setGoodsSkuId(goodsSkuId);
    }

    public void setQuantity(Integer quantity) {
        orderItemPo.setQuantity(quantity);
    }

    public void setPrice(Integer price) {
        orderItemPo.setPrice(price);
    }

    public void setDiscount(Integer discount) {
        orderItemPo.setDiscount(discount);
    }

    public void setName(String name) {
        orderItemPo.setName(name);
    }

    public void setCouponActivityId(Integer couponActivityId) {
        orderItemPo.setCouponActivityId(couponActivityId);
    }

    public void setBeSharedId(Integer beSharedId) {
        orderItemPo.setBeSharedId(beSharedId);
    }

    public void setGmtCreate(Date gmtCreate) {
        orderItemPo.setGmtCreate(gmtCreate);
    }

    public void setGmtModified(Date gmtModified) {
        orderItemPo.setGmtModified(gmtModified);
    }

    @Override
    public int hashCode() {
        return orderItemPo.hashCode();
    }

    @Override
    public String toString() {
        return orderItemPo.toString();
    }

    @Override
    public boolean equals(Object o) {
        return orderItemPo.equals(((OrderItem)o).orderItemPo);
    }
}
